import { createApp } from "vue";
import store from "./store";
import App from "./App.vue";
import "./assets/style/index.scss";
import "animate.css";
import router from "./router";
import Vant from "vant";
import "vant/lib/index.css";
const app = createApp(App);
app.use(store).use(router).directive(
  "scrollBottom", {
    // 自定义指令-列表新增元素后自动滚动底部
    updated(el) {
      el.scrollTo({
        top: el.scrollHeight - el.clientHeight,
        behavior: "smooth"
      })
    }
  }
).use(Vant).mount("#app");
